#ifndef _DVB_FUN_4_PLUGIN_H
#define _DVB_FUN_4_PLUGIN_H

#ifdef __cplusplus
extern "C"{
#endif

int DvbBuilderTunerLock(builder_tuner_t* pstFreq);

int DvbBuilderSetFilter(unsigned int* phFilter, unsigned short u16Pid, unsigned char* pu8Data, unsigned char* pu8Mask, unsigned int u32Depth);

int DvbBuilderReleaseFilter(unsigned int hFilter);

int DvbBuilderWriteNvm(unsigned char* pu8Data, unsigned int u32Len, unsigned int u32Offset);

int DvbBuilderReadNvm(unsigned char* pu8Data, unsigned int u32Len, unsigned int u32Offset);

void DvbBuilderDebug(char* ps8String);

void* DvbBuilderMemAlloc(unsigned int pu32Size);

void DvbBuilderMemFree(void* pPointer);

int DvbBuilderConvertString(unsigned char *pString, unsigned short len, unsigned char *lanCode); 

extern int DvbBuilderTunerLock(builder_tuner_t* pstFreq);

extern int DvbBuilderDataReceived(dvb_handle_t hFilter,  unsigned char* pu8Data,  unsigned short u16Datalen);

#ifdef __cplusplus
}
#endif

#endif //_DVB_FUN_4_PLUGIN_H

